How to add units Bản_mẫu:Giá_trị

Add the unit to Bản mẫu:Val/units. Val defaults to looking up units at {{Convert}}, but units added here override that.

Note these points about composite units before adding units:

  • For composite units you should probably link the whole, not individual units. For example the line you add would say |m.s-1=[[Metre per second|m⋅s{{sup|−1}}]] linking to Metre per second, not |m.s-1=[[Metre|m]]⋅[[Second|s]]{{sup|−1}}.
List of common physics notations has many examples of composite units that have their own page.
  • The val user can compose their own divisor unit from an existing unit, for example writing {{val|99|ul=m|upl=s}} to render their own "99 m/s" with two links: m to Meter and s to Second.
  • The val user can compose their own multiplier units by using the end parameter to prepend a string. For example, in a geology article, to prepend "Ma", to the unit in 333 14C yr BP, use {{val|333|ul=uBP|end= [[megaannum|Ma]]}} → 333 Ma 14C yr BP". (The end parameter accepts wikitext, so it can be linked.)

After adding a unit, you can ensure that it sorts correctly in a table, especially if there are ten or twenty variations that differ only by an SI prefix. (See § Sorting above and Bản mẫu:Val/sortkey/unit.)

Liên quan